package com.itheima.Demo;

public class AAA implements Runnable{
    //重写run方法;
    @Override
    public void run() {
        System.out.println("任务开始了");

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {


        }
        System.out.println("任务结束了");

    }
}
